{% extends "simple_cfp/cfp_base.html" %}
{% load i18n %}
{% block content %}
<div id="content-main">
    {% if sent %}
    <p>
    Your validation code for {{ email }} has been send to {{ contact_email }}.
    </p>
    {% else %}
        {% if error %}
        <p>
        A speaker with email address {{ email }} and contact email
        {{ contact_email }} is not in our records.
        </p>
        {% endif %}

        <p>
        If you forgot your validation code, type your speaker email address
        and contact email address below we will send your validation code to
        your contact email address.
        </p>

        <form method="post" action=".">
        <p>
        <b>Speaker Email Address:</b>
        <input name="email" type="textbox" maxlength="60"
         value="{{ email }}" />
        </p>
        <p>
        <b>Contact Email Address:</b>
        <input name="contact_email" type="textbox" maxlength="60"
         value="{{ contact_email }}" />
        </p>

        {% if recaptcha_html %}
            {% autoescape off %}
                {{ recaptcha_html }}
            {% endautoescape %}
        {% endif %}

        <p>
        <input type="submit" value="Email validation code" />
        </p>
    {% endif %}

    </form>
</div>
{% endblock %}
